class CreateGames < ActiveRecord::Migration
  def self.up
    create_table :games do |t|
      t.column :name,         :string,  :limit => 50           #游戏名称
      t.column :time,         :'timestamp with time zone'      #添加时间
      t.column :is_recommend, :boolean                         #是否推荐
      t.column :is_hot,       :boolean                         #是否热
      t.column :is_new,       :boolean                         #是否最新
    end
  end

  def self.down
    drop_table :games
  end
end
